/**
 * Copyright (c) 2011-9-23 WKM and/or its affiliates. 
 * Use is subject to license terms.
 * All rights reserved.
 */
package org.wkm.frame.listener;

import java.awt.Window;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * The class note
 * @version 1.0 2012-1-16
 * @author WUKUNMENG
 */
public class ButtonActionListener implements ActionListener {

	private Window window = null;
	
	/* (non-Javadoc)
	 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
	 */
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		if(window != null){
			window.dispose();
		}
	}

	/**
	 * 销毁窗口
	 * @param w
	 */
	public ButtonActionListener(Window w){
		window = w;
	}
}
